<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<style type="text/css">
    .container {
        width: 1170px !important;
    }
</style>
<nav class="navbar navbar-default clearfix">
    <div class="container">
        <div class="navbar-header">
            <sec:authorize access="hasRole('SHOP_USER')">
                <a class="navbar-brand" href="../render/productManager">店员后台</a>
            </sec:authorize>
            <sec:authorize access="hasRole('SHOP_ADMIN')">
                <a class="navbar-brand" href="../render/productManager">店主后台</a>
            </sec:authorize>
            <sec:authorize access="hasRole('ADMIN')">
                <a class="navbar-brand" href="../render/productManager">管理员后台</a>
            </sec:authorize>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <sec:authorize access="hasRole('SHOP_USER')">
                    <li class="${light==2?'active':''}"><a href="../render/productManager">店铺商品</a></li>
                    <li class="${light==8?'active':''}"><a href="../render/orderitemManager">店铺订单管理</a></li>
                    <li class="${light==9?'active':''}"><a href="../render/commentManager">店铺评论</a></li>
                </sec:authorize>
                <sec:authorize access="hasRole('SHOP_ADMIN')">
                    <li class="${light==2?'active':''}"><a href="../render/productManager">店铺商品</a></li>
                    <li class="${light==1?'active':''}"><a href="../render/categoryManager">店铺分类</a></li>
                    <li class="${light==3?'active':''}"><a href="../render/userManager">店员管理</a></li>
                    <li class="${light==8?'active':''}"><a href="../render/orderitemManager">店铺订单管理</a></li>
                    <li class="${light==6?'active':''}"><a href="../render/shopManager">店铺信息</a></li>
                    <li class="${light==9?'active':''}"><a href="../render/commentManager">店铺评论</a></li>
                </sec:authorize>
                <sec:authorize access="hasRole('ADMIN')">
                    <li class="${light==2?'active':''}"><a href="../render/productManager">商品管理</a></li>
                    <li class="${light==1?'active':''}"><a href="../render/categoryManager">分类管理</a></li>

                    <li class="${light==3?'active':''}"><a href="../render/userManager">用户管理</a></li>
                    <li class="${light==10?'active':''}"><a href="../render/roleuserManager">权限管理</a></li>

                    <li class="${light==9?'active':''}"><a href="../render/commentManager">评论管理</a></li>
                    <li class="${light==6?'active':''}"><a href="../render/shopManager_admin">商铺管理</a></li>

                    <li class="${light==4?'active':''}"><a href="../render/orderManager">订单管理</a></li>
                    <li class="${light==8?'active':''}"><a href="../render/orderitemManager">子订单管理</a></li>
                    <li class="${light==5?'active':''}"><a href="../render/bannerManager">轮播管理</a></li>
                    <li class="${light==7?'active':''}"><a href="../render/newsManager">新闻管理</a></li>
<%--                    <li class="${light==8?'active':''}"><a href="../render/config">网站设置</a></li>--%>
                </sec:authorize>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li class=""><a href="/" target="_blank" >网站前台</a></li>
            </ul>
        </div>
    </div>
</nav>
